package com.wxapp.common.constant.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lgl
 * @Description
 * @Datetime 2023/5/30 16:27
 * @Modified By
 */
@Data
@Component
@ConfigurationProperties(prefix = "okhttp")
public class OkHttpProperties {
    /**
     * 最大链接数
     */
    private int maxIdleConnections;
    /**
     * 最大空闲连接数
     */
    private int keepAliveDuration;
    /**
     * 链接超时时间
     */
    private int connectTimeout;
    /**
     * 新连接的默认读取超时
     */
    private int readTimeout;
    /**
     * 新连接的默认写超时
     */
    private int writeTimeout;
}
